/*
 * @Description: In User Settings Edit
 * @Author: your name
 * @LastEditors: Please set LastEditors
 * @Date: 2019-02-20 11:25:25
 * @LastEditTime: 2019-02-23 09:05:26
 */
/*
 * @Author: FredWang
 * @Date:   2019-1-15 18:36:34
 */
const path = require('path')

function resolve(dir) {
    return path.join(__dirname, dir)
}
module.exports = {
    lintOnSave: true,
    chainWebpack: (config) => {
        config.resolve.alias
            .set('@', resolve('src'))
    },
    baseUrl: '/adminSystem',
    productionSourceMap:false,

    devServer: {
        port: 80,
        host: '0.0.0.0',
        https: false,
        open: true,
        proxy: {
         
            '/user': {
                changeOrigin: true,
                target: 'http://renrentax.com'
            },
            
            '/customer': {
                changeOrigin: true,
                target: 'http://renrentax.com'
            }
        }
    }
}